﻿using System;
using System.Configuration;

namespace KeMei.Common
{
    public static class ConfigHelper
    {
        /// <summary>
        /// 取得连接字符串
        /// </summary>
        public static string ConnString
        {
            get { return DESEncrypt.Decrypt(ConfigurationManager.ConnectionStrings["default"].ConnectionString); }
        }

        /// <summary>
        /// 取得系统地址
        /// </summary>
        public static string SystemUrl
        {
            get { return ConfigurationManager.AppSettings["SysUrl"]; }
        }

        /// <summary>
        /// 取得分页数目
        /// </summary>
        public static int pageSize
        {
            get { return int.Parse(ConfigurationManager.AppSettings["pageSize"]); }
        }
    }
}
